package com.yazi.mxz.person.jackson.filter;

import java.util.HashSet;
import java.util.Set;

import com.fasterxml.jackson.databind.ser.FilterProvider;
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
import com.yazi.mxz.common.entity.beans.Region;

public abstract class RegionFilter {

	public static FilterProvider get() {
		final Set<String> region = new HashSet<String>();
		region.add("regionId");
		region.add("parentId");
		region.add("name");
		region.add("type");

		return new SimpleFilterProvider()
				.addFilter(Region.class.getSimpleName(),
						SimpleBeanPropertyFilter.filterOutAllExcept(region));
	}
	
}
